// action-creators: 用来创建action对象的函数模块
// action: { type: xxx, payload: xxx }
import { INCREMENT, DECREMENT } from "../action-types/counter";

export const increment = (val: number) => ({ type: INCREMENT, payload: val });

export const decrement = (val: number) => ({ type: DECREMENT, payload: val });
